libxl: Add suppress-vmdesc to QEMU machine
authorJason Andryuk <jandryuk@gmail.com>
Thu, 29 Oct 2020 19:03:32 +0000 (15:03 -0400)
committerWei Liu <wl@xen.org>
Fri, 6 Nov 2020 16:20:36 +0000 (16:20 +0000)
commit0a5e0ce0fb7e5a3b5dfdc936058d2c0e04e5e258
tree82645f59fcb378147ab2829c250bd5ba78073277
parentcd800ce442eeba5bc0857ade70a075367c01c350
libxl: Add suppress-vmdesc to QEMU machine

The device model state saved by QMP xen-save-devices-state doesn't
include the vmdesc json.  When restoring an HVM, xen-load-devices-state
always triggers "Expected vmdescription section, but got 0".  This is
not a problem when restore comes from a file.  However, when QEMU runs
in a linux stubdom and comes over a console, EOF is not received.  This
causes a delay restoring - though it does restore.

Setting suppress-vmdesc skips looking for the vmdesc during restore and
avoids the wait.

QEMU 5.2 enables suppress-vmdesc by default for xenfv, but this change
sets it manually for xenfv and xen_platform_pci=0 when -machine pc is
use.

QEMU commit 9850c6047b8b "migration: Allow to suppress vmdesc
submission" added suppress-vmdesc in QEMU 2.3.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
tools/libs/light/libxl_dm.c